import Axios from "./Axios";
import type { Options } from "./model";
export const Get = <T> (options:Options):T => Axios({method:"GET",url:options.url,params:options.params,headers:{...options.headers},...options.others}) as unknown as T;

export const Post = <T> (options:Options):T => Axios({method:"POST",url:options.url,data:options.params,headers:{...options.headers},...options.others}) as unknown as T;